
export default {
  USER_CHANGE(state, userInfo) {
    state.userInfo = userInfo;
  },
  SHOP_CHANGE(state, shopInfo) {
    state.shopInfo = shopInfo;
  },
  OPENID_CHANGE(state, val) {
    state.openid = val;
  },
  TOTALAMOUNT_CHANGE(state, val) {
    state.totalAmount = val;
  },
  LOGIN(state) {
    state.isLogin = true;
  },
  LOGOUT(state) {
    state.openid = '';
    state.isLogin = false;
    state.userInfo = null;
  },
};

